projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1d3306
)
(font_open_entity): Don't use ASET if font_object is Qnil.
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Tue, 24 Nov 2009 08:37:32 +0000
(08:37 +0000)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Tue, 24 Nov 2009 08:37:32 +0000
(08:37 +0000)
src/font.c
patch
|
blob
|
history
diff --git
a/src/font.c
b/src/font.c
index 5aa14ca4211f2ac89a7f7141ba1b52e692532063..061b6086ac278a9ef7b7df838ad55d68516962b6 100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-3007,7
+3007,8
@@
font_open_entity (f, entity, pixel_size)
return Qnil;
font_object = driver_list->driver->open (f, entity, scaled_pixel_size);
- ASET (font_object, FONT_SIZE_INDEX, make_number (pixel_size));
+ if (!NILP (font_object))
+ ASET (font_object, FONT_SIZE_INDEX, make_number (pixel_size));
FONT_ADD_LOG ("open", entity, font_object);
if (NILP (font_object))
return Qnil;